FROM blackbelt/oraclejdk8:1.8.0_162
# openjdk:8-jdk-alpine 代码去除了一些加密和图形的部分的非开源的组件。导致验证码显示会有问题。
LABEL name="light-demo"
ARG JAR_FILE=target/*.jar
ENV HOME="/data"
RUN mkdir -p ${HOME}
WORKDIR ${HOME}
ARG JAVA_OPTS=""
EXPOSE 8080
COPY ${JAR_FILE}  ${HOME}/app.jar
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar ${HOME}/app.jar

